package com.example.experiment2.facadePattern.subsystem;

public class Charge {
    public final int basicCharge =12;
    CheckWord checkWord;
    int charge;

    public Charge(CheckWord checkWord){
        this.checkWord=checkWord;
    }

    public void giveCharge(){
        int Charge =checkWord.getAmount() * basicCharge;

        System.out.println("广告费用："+ charge +"元");
    }

}
